package service

import (
	"fmt"
	"server_cluster/http/model"
)

func (s *Service) GetUserInfo() ([]*model.User, error) {
	infoList, err := s.d.GetAllUserInfo()
	if err != nil {
		fmt.Println("service get user info error: ", err)
		return nil, err
	}
	return infoList, nil
}
